﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Default.Master" AutoEventWireup="true" CodeBehind="DirectorateDetails.aspx.cs" Inherits="MockPrjTeam2.Pages.Forms.DirectorateDetails" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <link href="../../Resource/CSS/style/reset.css" rel="stylesheet" type="text/css" />
    <link href="../../Resource/CSS/style/root.css" rel="stylesheet" type="text/css" />
    <link href="../../Resource/CSS/style/grid.css" rel="stylesheet" type="text/css" />
    <link href="../../Resource/CSS/style/typography.css" rel="stylesheet" type="text/css" />
    <link href="../../Resource/CSS/style/jquery-ui.css" rel="stylesheet" type="text/css" />
    <link href="../../Resource/CSS/style/jquery-plugin-base.css" rel="stylesheet" type="text/css" />
        <script type="text/javascript" src="<%= Page.ResolveUrl("../../Resource/JS/js/jquery.min.js") %>"></script>
    <script type="text/javascript" src="<%= Page.ResolveUrl("../../Resource/JS/js/toogle.js") %>"></script>
    <script type="text/javascript" src="<%= Page.ResolveUrl("../../Resource/JS/js/jquery.tipsy.js") %>"></script>
    <script type="text/javascript" src="<%= Page.ResolveUrl("../../Resource/JS/js/jquery.uniform.min.js") %>"></script>
    <script type="text/javascript" src="<%= Page.ResolveUrl("../../Resource/JS/js/jquery.tablesorter.min.js") %>"></script>
    <script type="text/javascript" src="<%= Page.ResolveUrl("../../Resource/JS/js/popup.js") %>"></script>
    <script type="text/javascript" src="<%= Page.ResolveUrl("../../Resource/JS/js/jquery.ui.widget.js") %>"></script>
    <script type="text/javascript" src="<%= Page.ResolveUrl("../../Resource/JS/js/jquery.ui.accordion.js") %>"></script>
     <script type="text/javascript" src="<%= Page.ResolveUrl("../../Resource/JS/js/jquery.ui.tabs.js") %>"></script>
 
   
     <script type="text/javascript">
         $(function () {
             $("#tabs").tabs();
         });

         function ConfirmApproval(message) {
             if (confirm(message)) {
             } else {

             }
         }
    </script>
 <div class="grid740 simplebox relative">
      <h2 style="color: #008000; background-color: #CCFFFF;" > Directorate Details</h2>
        <div id="tabs">
            <ul>
                <li>
                    <asp:HyperLink ID="LinkDetails01" NavigateUrl="#DetailsPanel01" runat="server">Details</asp:HyperLink></li>
                    <li>
                    <asp:HyperLink ID="LinkDetails02" NavigateUrl="#DetailsPanel02" runat="server" Visible="false">Departments</asp:HyperLink></li>
                <%--DETAIL PANEL 05--%>
                <asp:HiddenField ID="HiddenFieldDirectorateId" runat="server" />
                <asp:HiddenField ID="HiddenFieldOrganizationId" runat="server" />
                <asp:HiddenField  ID="hdnDirectorateName" runat="server"/>
            </ul>
            <span class="top-right-cornor">
                  <asp:Button CssClass="button" ID="ButtonInactive" runat="server" Text="In-active"
                    CommandName="active" CausesValidation="False" OnCommand="ButtonInactive_Command"
                     />
                <asp:Button CssClass="button" ID="ButtonSave" runat="server" Text="Save" 
                  
                onclick="ButtonSave_Click" />
                <asp:Button CssClass="button" ID="ButtonBack" runat="server" Text="Back"
                    CausesValidation="False" onclick="ButtonBack_Click" />
            </span>
               <asp:Panel ID="DetailsPanel01" ClientIDMode="Static" runat="server">
                 <asp:Label ID="Lblvalidation" runat="server" 
                            Text="The fields with asterisk(*) are required" ForeColor="Red"></asp:Label>
                <div class="st-form-line-noleft">
                    <div class="half">
                                               
                        <asp:Label ID="LabelOrganizationName" runat="server" Text="Directorate Name" CssClass="st-labeltext level1 required"
                            AssociatedControlID="TextBoxDirectorateName">
                            <asp:RequiredFieldValidator ID="RequiredDirectorateName" runat="server" ErrorMessage="*" Display="None"
                                SetFocusOnError="true" ForeColor="red" ControlToValidate="TextBoxDirectorateName" />
                        </asp:Label><asp:TextBox ID="TextBoxDirectorateName" CssClass="st-forminput" runat="server"
                            Width="200px"></asp:TextBox><br /><asp:Label ID="LabelNameExists" runat="server" ForeColor="maroon" Text=""></asp:Label></div><div class="half last">
                        <asp:Label ID="LabelTypeOfBusiness" runat="server" Text="Type of Business" CssClass="st-labeltext level1 required"
                            AssociatedControlID="txtBussinessName">
                            <asp:RequiredFieldValidator ID="RequiredTypeOfBusiness" runat="server" ErrorMessage="* Please input type of bussiness"
                                Display="None" SetFocusOnError="true" ForeColor="red" ControlToValidate="txtBussinessName" />
                        </asp:Label><asp:TextBox ID="txtBussinessName" 
                            CssClass="st-forminput st-disable" ClientIDMode="Static"
                            runat="server" Width="150px" ReadOnly="True"></asp:TextBox><asp:LinkButton ID="ButtonTypeOfBusinessLookup"
                                runat="server" CssClass="hg-blue" Text="Lookup" OnClientClick="OpenPopupBussiness()"
                                />
                        <br />
                        <asp:HiddenField ID="HiddenFieldBusinessId" runat="server" />
                    </div>
                    <div class="clear">
                    </div>
                </div>
                <div class="st-form-line-noleft">
                    <div class="half">
                        <asp:Label ID="LabelShortDescription" runat="server" Text="Organization Short Description"
                            CssClass="st-labeltext level1" AssociatedControlID="TextBoxShortDescription">
                            <asp:RequiredFieldValidator ID="RequiredShortDescription" runat="server" ErrorMessage="*"
                                SetFocusOnError="true" ForeColor="red" ControlToValidate="TextBoxShortDescription" />
                        </asp:Label><asp:TextBox ID="TextBoxShortDescription" CssClass="st-forminput" runat="server"
                            Width="200px" TextMode="MultiLine" Rows="3"></asp:TextBox></div><div class="half last">
                    </div>
                     <div class="half last">
                        <asp:Label ID="LabelSicCode" runat="server" Text="SIC" CssClass="st-labeltext level1"
                            AssociatedControlID="TxtSicCode"></asp:Label><asp:TextBox ID="TxtSicCode" ClientIDMode="Static"
                                CssClass="st-forminput st-disable" runat="server" Width="50px"></asp:TextBox><asp:HiddenField ID="hdnBussId" ClientIDMode="Static" runat="server" /></div><div class="clear">
                                    <asp:HiddenField ID="HiddenField1" ClientIDMode="Static" runat="server" />                                                                                    
                    </div>
                </div>
                <div class="st-form-line-noleft">
                    <div class="half">
                        <asp:Label ID="LabelLeadContact" runat="server" Text="Lead Contact" CssClass="st-labeltext level1 required"
                            AssociatedControlID="txtContact">
                              <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="*" Display="None"
                                SetFocusOnError="true" ForeColor="red" ControlToValidate="txtContact" />
                            
                            </asp:Label><asp:TextBox ID="txtContact" ClientIDMode="Static"
                                CssClass="st-forminput st-disable" runat="server" Width="150px" 
                             ReadOnly="True"></asp:TextBox><asp:LinkButton
                                    ID="ButtonContactLookup" runat="server" CssClass="hg-blue" Text="Lookup" OnClientClick="OpenPopup()"
                                    />
                        <asp:HiddenField ID="hdnContactId" ClientIDMode="Static" runat="server" />
                    </div>
                    <div class="half last">
                        <asp:Label ID="LabelFullDescription" runat="server" Text="Full Description" CssClass="st-labeltext level1"
                            AssociatedControlID="TextBoxFullDescription"></asp:Label><asp:TextBox ID="TextBoxFullDescription"
                                CssClass="st-forminput" runat="server" Width="200px" TextMode="MultiLine" Rows="3"></asp:TextBox><br /></div><div class="clear">
                    <asp:HiddenField 
                             ID="HdnAddressLine2" runat="server" /><asp:HiddenField ID="HdnAddressLine3" 
                             runat="server" /></div>
                </div>
                <div class="st-form-line-noleft">
                    <div class="half">
                        <asp:CheckBox ID="CheckBoxCopy" runat="server" Text="Copy Address from Organization"
                            OnCheckedChanged="CheckBoxCopy_CheckedChanged" AutoPostBack="True" /><asp:HiddenField ID="HiddenFielAddress" runat="server" /><br />
                        <br />
                        <asp:Label ID="LabelAddressLine1" runat="server" Text="Address Line 1" CssClass="st-labeltext level1 required"
                            AssociatedControlID="TextBoxAddressLine1">
                            <asp:RequiredFieldValidator ID="RequiredAddressLine1" runat="server" ErrorMessage="*" Display="None"
                                SetFocusOnError="true" ForeColor="red" ControlToValidate="TextBoxAddressLine1" />
                        </asp:Label><asp:TextBox ID="TextBoxAddressLine1" CssClass="st-forminput" runat="server"
                            Width="200px"></asp:TextBox><br /><br /><asp:Label ID="LabelAddressLine2" runat="server" Text="Address Line 2" CssClass="st-labeltext level1"
                            AssociatedControlID="TextBoxAddressLine2"></asp:Label><asp:TextBox ID="TextBoxAddressLine2"
                                CssClass="st-forminput" runat="server" Width="200px"></asp:TextBox><br /><br /><asp:Label ID="LabelAddressLine3" runat="server" Text="Address Line 3" CssClass="st-labeltext level1"
                            AssociatedControlID="TextBoxAddressLine3"></asp:Label><asp:TextBox ID="TextBoxAddressLine3"
                                CssClass="st-forminput" runat="server" Width="200px"></asp:TextBox></div><div class="half last">
                        <asp:Label ID="LabelPhoneNumber" runat="server" Text="Phone Number" CssClass="st-labeltext level1"
                            AssociatedControlID="TextBoxPhoneNumber">
               <asp:RegularExpressionValidator ID="RequiredP" runat="server" 
                                        ControlToValidate="TextBoxPhoneNumber" Display="None" SetFocusOnError="true"
                                        ErrorMessage="* Invaild phone number" ForeColor="Red" 
                                        ValidationExpression="[0-9]{10}"></asp:RegularExpressionValidator>
                        </asp:Label><asp:TextBox ID="TextBoxPhoneNumber" CssClass="st-forminput" runat="server"
                            Width="200px"></asp:TextBox><div class="clear"></div>
                            <br /><asp:Label ID="LabelFax" runat="server" Text="Fax" CssClass="st-labeltext level1"
                            AssociatedControlID="TextBoxFax">
                            
                        </asp:Label><asp:TextBox ID="TextBoxFax" CssClass="st-forminput" runat="server" Width="200px"></asp:TextBox><div class="clear"></div>
                        <br /><asp:Label ID="LabelEmail" runat="server" Text="Email" CssClass="st-labeltext level1"
                            AssociatedControlID="TextBoxEmail">
                           </asp:Label><asp:TextBox
                                    ID="TextBoxEmail" CssClass="st-forminput" runat="server" Width="200px"></asp:TextBox><br /><asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="TextBoxEmail"
                                Display="Dynamic" EnableTheming="True" ErrorMessage="Email format is invalid" ForeColor="Red" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"></asp:RegularExpressionValidator><br /><asp:Label ID="LabelWebAddress" runat="server" Text="Web Address" CssClass="st-labeltext level1"
                            AssociatedControlID="TextBoxWebAddress">
                            </asp:Label><asp:TextBox
                                    ID="TextBoxWebAddress" CssClass="st-forminput" runat="server" Width="200px"></asp:TextBox><div class="clear"></div>
                                    <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" ForeColor="Red"
                                ControlToValidate="TextBoxWebAddress" Display="Dynamic" ErrorMessage="Web Address format is invalid" ValidationExpression="http(s)?://([\w-]+\.)+[\w-]+(/[\w- ./?%&amp;=]*)?"></asp:RegularExpressionValidator></div><div class="clear">
                                    
                    </div>
                </div>
                <div class="st-form-line-noleft">
                     <div class="half">
                        <asp:Label ID="LabelPostcode" runat="server" Text="Postcode" CssClass="st-labeltext level1 required"
                            AssociatedControlID="TxtPostcode">
                    
                        </asp:Label><asp:TextBox ID="txtPostCode" CssClass="st-forminput st-disable" ClientIDMode="Static"
                            runat="server" Width="150px" ReadOnly="True"></asp:TextBox><asp:LinkButton ID="ButtonPostcodeLookup" 
                                runat="server" CssClass="hg-blue" Text="Lookup" OnClientClick="OpenPopupAddress()"
                  /></div>
                    <div class="half last">
                        <asp:Label ID="LabelCharityNumber" runat="server" Text="Charity Number" CssClass="st-labeltext level1"
                            AssociatedControlID="TextBoxCharityNumber"></asp:Label><asp:TextBox ID="TextBoxCharityNumber"
                                CssClass="st-forminput" runat="server" Width="200px"></asp:TextBox></div><div class="clear"><asp:HiddenField ID="hdnAddressId" ClientIDMode="Static" runat="server" />
                    </div>
                </div>
                <div class="st-form-line-noleft">
                    <div class="half">
                        <asp:Label ID="LabelCityTown" runat="server" Text="City/Town" CssClass="st-labeltext level1"
                            AssociatedControlID="TextBoxCityTown"></asp:Label><asp:TextBox ID="TextBoxCityTown"
                                CssClass="st-forminput" runat="server" Width="200px"></asp:TextBox></div><div class="half last">
                        <asp:Label ID="LabelCompanyNumber" runat="server" Text="Company Number" CssClass="st-labeltext level1"
                            AssociatedControlID="TextBoxCompanyNumber"></asp:Label><asp:TextBox ID="TextBoxCompanyNumber"
                                CssClass="st-forminput" runat="server" Width="200px"></asp:TextBox></div><div class="clear">
                    </div>
                </div>
                <div class="st-form-line-noleft">
                    <div class="half">
                        <asp:Label ID="LabelCounty" runat="server" Text="County" CssClass="st-labeltext level1"
                            AssociatedControlID="TextBoxCounty"></asp:Label><asp:TextBox ID="TextBoxCounty" CssClass="st-forminput"
                                runat="server" Width="200px"></asp:TextBox></div><div class="half last">
                    </div>
                    <div class="clear">
                    </div>
                </div>
                <div class="st-form-line-noleft">
                    <div class="half">
                        <asp:Label ID="LabelNationCounty" runat="server" Text="Nation County" CssClass="st-labeltext level1"
                            AssociatedControlID="DropDownListNationCounty"></asp:Label><asp:DropDownList ID="DropDownListNationCounty"
                                runat="server" CssClass="st-forminput" Width="200px" DataTextField="CountryName" DataValueField="CountryId">
                            </asp:DropDownList>
                    </div>
                    <div class="half last">
                    </div>
                    <div class="clear">
                    </div>
                </div>
            </asp:Panel>
            <%--<asp:Panel ID="DetailsPanel02" runat="server" ClientIDMode="Static" Visible="false">
                <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                    <ContentTemplate>
                    <asp:PlaceHolder ID="HolderDepartmentList" runat="server" />
                </ContentTemplate>
                </asp:UpdatePanel>
            </asp:Panel>--%>
            
        </div>
    </div>
</asp:Content>

